package com.mic.security.test.service;

import java.util.List;

import org.apache.log4j.Logger;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
import org.springframework.test.context.transaction.TransactionConfiguration;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.util.Assert;
import com.mic.security.model.Role;
import com.mic.security.service.RoleService;


public class RoleServiceTestCase extends ServiceTestCase {
	
	private static Logger logger = Logger.getLogger(RoleServiceTestCase.class);  
	
	@Autowired
	private RoleService roleService;

	@Test
	public void testFindAllRoles(){
		logger.info("Test RoleService.findAllRoles");
		List<Role> roles = roleService.findAllRoles();
		Assert.notNull(roles);
		for(Role role: roles){
			System.out.println(role);
		}
	}
}
